* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #ffffff;
  font-family: 'Times New Roman', Times, serif;
  font-size: 12px;
  position: relative;
}

html, body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  width: 100%;
  max-width: 2000px;
  margin: auto;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  top: 0;
  z-index: 200;
}

header a {
  color: rgb(210, 173, 255);
  margin-right: 200px;
}

/* Barra de navegación */
.navbar-nav {
  margin-left: -20%;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand span {
  font-size: 18px;
  font-family: 'Times New Roman', Times, serif;
}

.navbar-nav .nav-link {
  font-size: 18px;
  margin-right: 20px;
  margin-left: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(0, 0, 0);
}

.navbar-nav .nav-link:hover {
  color: rgb(210, 173, 255);
  text-decoration: underline;
}

nav.navbar {
  position: relative;
  z-index: 200;
  background-color: transparent;
}

/* Estilo para servicios */
.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 1000;
}

.dropdown-item {
  color: rgb(210, 173, 255);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: rgb(210, 173, 255);
  color: #000000;
}

.nav-link.dropdown-toggle {
  color: rgb(92, 92, 92);
}

/* Carrusel */
.carousel {
  height: 1000px;
  margin-top: -60px;
  width: 1900px;
  overflow: hidden;
  position: relative;
}

.carousel .list .item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}

.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel .list .item .content {
  position: absolute;
  top: 20%;
  width: 1140px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: #000000;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.267);
}

.carousel .list .item .author {
  font-weight: bold;
  letter-spacing: 10px;
}

.carousel .list .item .title,
.carousel .list .item .topic {
  color: rgb(210, 173, 255);
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3em;
}

.carousel .list .item .topic {
  color: #000000;
}

.carousel .list .item .buttons {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  gap: 5px;
  margin-top: 20px;
}

.carousel .list .item .buttons button {
  border: none;
  background-color: rgb(210, 173, 255);
  color: #000000;
  letter-spacing: 3px;
  font-family: Poppins;
  font-weight: 500;
}

.carousel .list .item .buttons button:nth-child(2) {
  background-color: transparent;
  border: 1px solid rgb(210, 173, 255);
}

/* Imágenes pequeñitas */
.thumbnail {
  position: absolute;
  bottom: -120%;
  left: 25%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 220px;
  flex-direction: column;
}

.thumbnail .item {
  width: 399px;
  height: 200px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); /* Sombra negra con intensidad */
}

.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.thumbnail .item .content {
  color: #000000;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}

.thumbnail .item .content .title {
  font-weight: 500;
}

.thumbnail .item .content .description {
  font-weight: 300;
}

.arrows {
  position: absolute;
  transform: translateX(50%);
  top: 82%;
  right: 64.4%;
  z-index: 100;
  width: -10px;
  max-width: 30%;
  display: flex;
  gap: 380px;
  align-items: center;
  color: #D2ADFF;
}

.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #D2ADFF;
  border: none;
  color: #000000;
  font-family: monospace;
  font-weight: bold;
  transition: .5s;
}

.arrows button:hover {
  background-color: #000000;
  color: #D2ADFF;
}

/* Animation */
.carousel .list .item:nth-child(1) {
  z-index: 1;
}

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .4s 1s linear 1 forwards;
}

@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

.carousel .list .item:nth-child(1) .content .title {
  animation-delay: 0.5s !important;
}

.carousel .list .item:nth-child(1) .content .topic {
  animation-delay: 0.7s !important;
}

.carousel .list .item:nth-child(1) .content .des {
  animation-delay: 0.9s !important;
}

.carousel .list .item:nth-child(1) .content .buttons {
  animation-delay: 1.1s !important;
}

/* Create animation when next click */
.carousel.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage .5s linear 1 forwards;
}

@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(4) {
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}

.carousel.prev .list .item img {
  z-index: 100;
}

@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}

.carousel.next .thumbnail {
  animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

/* Running time */
.carousel .time {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: #f1683a;
  left: 0;
  top: 0;
  animation: none;
}

.carousel.next .time,
.carousel.prev .time {
  animation: none;
}

@keyframes runningTime {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}

/* Prev click */
.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
  animation: none;
  position: absolute;
  bottom: 0;
  left: 0;
}

@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: none;
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
  pointer-events: none;
}

.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons {
  animation: none;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

/* Sección NOSOTROS */
.NOSOTROS {
  background-image: linear-gradient(
    rgba(0, 0, 0, 0.5), 
    rgba(0, 0, 0, 0.5)
  ),
  url('img/1192a14da8c5816df0713b5b3b464714.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 60vh; /* Ajusta la altura de la sección */
  width: 80%; /* Ajusta el ancho para cubrir toda la sección */
  padding: 40px 0; /* Elimina el padding para ajustarse a la nueva altura */
  margin-top: 20px; /* Espacio en blanco en la parte superior */
  margin-bottom: 40px; /* Separación con el carrusel */
  margin-left: 10%; /* Espacio en blanco al lado izquierdo */
  display: flex; /* Usa Flexbox para centrar el contenido verticalmente */
  align-items: center; /* Centra el contenido verticalmente */
  justify-content: center; /* Centra el contenido horizontalmente */
  box-sizing: border-box;
  border-radius: 15px; /* Bordes redondeados */
  overflow: hidden; /* Asegura que el contenido no sobresalga de los bordes redondeados */
}

.NOSOTROS-content {
  text-align: center;
  color: rgb(210, 173, 255);
  background-color: rgba(0, 0, 0, 0.6); /* Fondo semi-transparente para mejorar la legibilidad */
  border-radius: 10px; /* Bordes redondeados */
  padding: 20px;
  max-width: 800px; /* Ajusta el ancho máximo del contenedor */
  margin: 0 auto; /* Centra el contenedor horizontalmente */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para dar profundidad */
}

.NOSOTROS-content h1 {
  font-size: 2rem; /* Ajusta el tamaño del título */
  margin-bottom: 15px;
}

.NOSOTROS-content .image-container {
  margin-bottom: 20px;
}

.NOSOTROS-content .image-container img {
  width: 120px; /* Ajusta el ancho de la imagen */
  height: auto; /* Mantiene la proporción de la imagen */
  border-radius: 8px; /* Bordes redondeados */
}

.NOSOTROS-content p {
  color: #ffffff; /* Color del texto */
  margin-bottom: 20px;
}

.btn-1 {
  display: inline-block;
  background-color: rgb(210, 173, 255);
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px; /* Bordes redondeados */
}

.btn-1:hover {
  background-color: rgb(190, 150, 230); /* Color del botón en hover */
}


/* SERVICIOS */
.section-title {
  font-family: Poppins;
  text-align: center; /* Centra el texto del título */
  font-size: 30px; /* Tamaño de fuente grande para el título */
  margin-bottom: -250px; /* Espacio debajo del título */
  color: #333333; /* Color del texto del título (ajusta según tu esquema de colores) */
  font-weight: 700; /* Peso de fuente fuerte para destacar el título */
  position: relative; /* Permite posicionar el título en relación a su contenedor */
  z-index: 1; /* Asegura que el título esté por encima del contenedor */
  margin-top: -5%;
}

.card-section {
  height: 600px; /* Ajusta la altura de la sección automáticamente según el contenido */
  padding: 100px; /* Espacio alrededor de la sección para evitar que el contenido toque los bordes */
  position: relative; /* Establece el contenedor como relativo para el posicionamiento de los hijos */
  background-color: #f4f4f4; /* Color de fondo para la sección */
}

.container {
  display: grid; /* Usa el grid layout para centrar el contenido */
  place-items: center; /* Centra el contenido horizontal y verticalmente */
  margin-inline: 0; /* Establece el margen horizontal a 0 para mover el contenedor hacia la izquierda */
  padding: 10px 10px; /* Espacio a los lados del contenedor */
  max-width: 1800px; /* Establece un ancho máximo para el contenedor */
}

.card__container {
  display: grid; /* Usa el grid layout para organizar las cartas */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Alinea las cartas en columnas adaptables */
  gap: 100px; /* Espacio entre las cartas */
  justify-content: start; /* Alinea las cartas hacia el inicio (izquierda) */
}

.card__article {
  position: relative; /* Necesario para la posición absoluta del contenido de la carta */
  background-color: #ffffff; /* Color de fondo del artículo de la carta */
  border-radius: 1rem; /* Bordes redondeados para el artículo */
  overflow: hidden; /* Asegura que el contenido no sobresalga del contenedor */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* Sombra con el color deseado */
  width: 349px; /* Ancho de la carta (ajusta según el diseño) */
  height: 400px; /* Altura de la carta (ajusta según el diseño) */
  margin-left: -80%;
}

.card__img {
  width: 100%; /* Ajusta el ancho de la imagen al ancho del contenedor */
  height: 60%; /* Ajusta la altura de la imagen dentro de la carta */
  object-fit: cover; /* Mantiene la proporción de la imagen sin deformarla */
}

.card__data {
  width: 100%; /* Ajusta el ancho del contenedor de datos al ancho del artículo */
  background-color: #ffffff; /* Color de fondo del contenido de la carta */
  padding: 10px; /* Espacio interno dentro del contenedor de datos */
  border-radius: 1rem; /* Bordes redondeados para el contenedor de datos */
  position: absolute; /* Posiciona el contenido de la carta sobre la imagen */
  bottom: 0; /* Posición del contenido en la parte inferior del artículo */
  left: 0; /* Alinea a la izquierda del contenedor */
  right: 0; /* Alinea a la derecha del contenedor */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* Sombra con el color deseado */
  transition: opacity 1s; /* Transición para mostrar el contenido */
}
.card__description {
  display: block; /* Asegura que el texto se muestre en bloque */
  font-size: var(--small-font-size); /* Tamaño de fuente pequeño para la descripción */
  margin-bottom: .25rem; /* Espacio debajo de la descripción */
}

.card__title {
  font-size: var(--h2-font-size); /* Tamaño de fuente para el título */
  font-weight: 500; /* Peso de fuente para el título */
  color: #000000; /* Color del texto del título */
  margin-bottom: .75rem; /* Espacio debajo del título */
}

.card__button {
  text-decoration: none; /* Elimina el subrayado del enlace */
  font-size: var(--medium-font-size); /* Tamaño de fuente pequeño para el botón */
  font-weight: 500; /* Peso de fuente para el botón */
  color: #000000; /* Color del texto del botón */
}

/* Animaciones al pasar el ratón */
.card__article:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.card__article:hover {
  animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
  animation: remove-data 1s forwards;
}

/* Animaciones de la tarjeta */
@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/* =============== BREAKPOINTS =============== */
/* Para dispositivos pequeños */
@media screen and (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .card__container {
    grid-template-columns: repeat(1, 1fr); /* Una sola columna en pantallas pequeñas */
  }

  .card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* Para dispositivos medianos */
@media screen and (min-width: 768px) and (max-width: 1120px) {
  .card__container {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas medianas */
    column-gap: 1.5rem;
  }
}

/* Para dispositivos grandes */
@media screen and (min-width: 1120px) {
  .container {
    height: 100vh;
  }

  .card__container {
    grid-template-columns: repeat(4, 1fr); /* Cuatro columnas en pantallas grandes */
  }
  
  .card__img {
    width: 348px;
  }

  .card__data {
    width: 316px;
    padding-inline: 2.5rem;
  }
}


/* Estilo general para la sección de información */
#informacion {
  font-size: 14px; /* Ajuste para una mejor visualización */
  background-color: #000000;
  padding: 15px 0; /* Padding moderado para reducir la altura del fondo */
}

.INFORMACION-info {
  max-width: 960px; /* Tamaño del contenedor */
  margin: 0 auto;
  text-align: center;
  padding: 20px 0; /* Padding interno moderado para ajustar la altura */
  min-height: 150px; /* Altura mínima para mantener una buena apariencia */
}

.INFORMACION-info h2 {
  color: rgb(210, 173, 255);
  font-size: 24px;
  margin-bottom: 20px;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.info-item {
  flex: 1 1 calc(25% - 20px);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-item h4 {
  color: rgb(210, 173, 255);
  margin-bottom: 10px;
  font-size: 18px;
}

.info-item p {
  color: #333;
  font-size: 16px;
  margin: 0;
}

/* Estilo para la sección de redes sociales */
.sociales {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
}

.social img {
  max-width: 100%;
  height: auto;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .info-item {
      flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .info-item {
      flex: 1 1 100%;
  }
}


/* Estilos para el mapa */
.map {
  filter: grayscale(100%) invert(92%) contrast(93%);
}

/* Pie de página */
.footer {
  background-color: rgb(210, 173, 255);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px;
  color: white;
  font-family: 'Poppins', sans-serif;
  flex-wrap: wrap;
}

/* Logo */
.footer-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: black;
  padding: 10px;
}

/* Enlaces */
.footer-links {
  display: flex;
  flex-direction: column;
}

.links-section ul {
  list-style: none;
  padding: 0;
}

.links-section ul li {
  margin-bottom: 10px;
}

.links-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.links-section ul li a:hover {
  color: #ffd700;
}



/* Estilos generales del footer */
.footer {
  background-color: #000000;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 2px solid rgb(210, 173, 255);
  font-family: Arial, sans-serif;
}

/* Estilo para el logo del footer */
.footer-logo img {
  max-width: 150px;
  height: auto;
}

/* Estilo para las secciones de enlaces */
.footer-links, .footer-form, .footer-info, .footer-customer-support {
  flex: 1 1 200px;
  margin: 10px;
}

/* Estilo de los títulos de las secciones */
.footer h4 {
  color: rgb(210, 173, 255);
  margin-bottom: 10px;
  font-size: 16px;
}

/* Estilo para los enlaces en el footer */
.footer a {
  color: rgb(180, 180, 180);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Estilo para las listas de enlaces */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 5px;
}

/* Estilo para el formulario de suscripción */
.footer-form form {
  display: flex;
  flex-direction: column;
}

.footer-form input[type="email"] {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.footer-form button {
  padding: 10px;
  background-color: rgb(210, 173, 255);
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.footer-form button:hover {
  background-color: rgb(180, 150, 240);
}

/* Estilo para el mensaje de éxito */
#successMessage {
  color: green;
  margin-top: 10px;
}

/* Estilo para la información de contacto */
.footer-info p {
  margin: 5px 0;
}

.footer-info a {
  color: rgb(210, 173, 255);
}

.footer-info a:hover {
  text-decoration: underline;
}

/* Estilo para la sección de ayuda al cliente */
.footer-customer-support p {
  margin: 5px 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer {
      flex-direction: column;
      text-align: center;
  }
  .footer-logo {
      margin-bottom: 20px;
  }
}

/* Estilo para el ícono flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: rgb(210, 173, 255);
  border-radius: 50%;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  filter: invert(100%); /* Para cambiar el ícono a blanco */
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: black; /* Cambia el color al pasar el mouse */
}

/* Estilo del Modal */
.modal {
  display: none; /* Oculta el modal por defecto */
  position: fixed; /* Posiciona el modal de manera fija */
  z-index: 1; /* Asegura que esté por encima del contenido */
  left: 0;
  top: 0;
  width: 100%; /* Ancho completo de la pantalla */
  height: 100%; /* Altura completa de la pantalla */
  overflow: auto; /* Permite el desplazamiento si es necesario */
  background-color: rgba(0,0,0,0.4); /* Color de fondo semitransparente */
}

/* Contenido del Modal */
.modal-content {
  background-color: #ffffff; /* Fondo blanco para el contenido del modal */
  margin: 10% auto; /* Centra el contenido del modal verticalmente */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Ancho del modal */
  max-width: 500px; /* Ancho máximo del modal */
  border-radius: 8px; /* Bordes redondeados */
  font-family: 'Arial', sans-serif; /* Fuente personalizada (ajusta según tu preferencia) */
}

/* Botón de Cierre */
.close-btn {
  color: rgb(210, 173, 255); /* Color del botón de cierre */
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Estilo del Formulario */
form {
  display: flex;
  flex-direction: column;
  font-family: 'Arial', sans-serif; /* Fuente personalizada (ajusta según tu preferencia) */
}

label {
  margin-top: 10px;
  color: rgb(210, 173, 255); /* Color del texto de las etiquetas */
}

input {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Arial', sans-serif; /* Fuente personalizada (ajusta según tu preferencia) */
}

button {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: rgb(210, 173, 255); /* Color de fondo del botón */
  color: white;
  cursor: pointer;
  font-family: 'Arial', sans-serif; /* Fuente personalizada (ajusta según tu preferencia) */
}

button:hover {
  background-color: #a168e4; /* Color de fondo del botón en hover */
}